<?php
	error_reporting(0);
	require 'parserVideo.class.php';
	header("content-type:text/html;charset=utf-8");
	header("Access-Control-Allow-Origin: *");
	$url = $_POST["u"];
	$url = base64_decode($url);
	//$url = "http://tv.sohu.com/20151116/n426668191.shtml";
	$result = json_encode(ParserVideo::parse($url));
	exit($result);
?>